<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<html>
<head>
    <script type="text/javascript">
        var InfoUrl="companyprofile/profileInfo.do";
        $(document).ready(function () {
            $('#profile-fm').form('syncLoad', InfoUrl);
            $("#imageurlx").attr("src", basePath + $('#photoPath').val());
        });


        function edit(url) {
            $.get(url, {}, function(data) {
                $("#center").empty();
                $("#center").html(data);
                $.parser.parse($("#center"));
            });
        }
    </script>
</head>
<body>
<div class="linkbar"><a>公司简介管理</a></div>
<div id="profile-add">
    <form id="profile-fm" method="post" novalidate>
        <br>
        <br>
        <br>
        <div class="fitem">
            <label>简介标题：</label> <input name="title"
                                      style="width:200px;"
                                      class="easyui-validatebox" missingMessage="该输入项不能为空！"
                                      readonly="readonly"/>
        </div>
        <br>
        <div class="fitem">
            <label>图片:</label>
        </div>
        <div id="imgx"  class="shangc_nav clearfix">
            <img id="imageurlx" src="" style="width:100px;"/>
            <input type="hidden" name="photoPath" id="photoPath" class="easyui-validatebox" missingMessage="该输入项不能为空！"
                   readonly="readonly"/>
        </div>
        <br>
        <div class="fitem">
            <label>内容：</label>
            <textarea name="content" style="height: 100px; width: 300px;"
                      class="easyui-validatebox"
                      data-options="validType:['length[1,5000]']"
            readonly="readonly"/>
        </div>
    </form>
</div>
<br>
<div id="dlg-buttons">
    <a href="#" class="easyui-linkbutton" iconCls="icon-ok"
       onclick="edit('companyprofile/edit.do')">编辑</a></a>
</div>
</body>
</html>